using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.HomeServer.Extensibility;

namespace Serviio.WHS
{
    public class HomeServerTabExtender : IConsoleTab
    {
        private static readonly LogFacade log = LogFacade.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        private IConsoleServices consoleServices;
        private TabContainerControl tabControl;

        public HomeServerTabExtender(int width, int height, IConsoleServices consoleServices)
        {
            try
            {
                this.consoleServices = consoleServices;

                tabControl = new TabContainerControl(width, height, consoleServices);

                //Additional setup code here
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
        }

        public Guid SettingsGuid
        {
            get
            {
                return new Guid("170ca221-0499-4967-b64f-572810ad7676");
            }
        }

        public Control TabControl
        {
            get
            {
                return tabControl;
            }
        }

        public Bitmap TabImage
        {
            get
            {
                return Properties.Resources.ServiioLogo32;
            }
        }

        public string TabText
        {
            get
            {
                return "Serviio Media Server";
            }
        }

        public bool GetHelp()
        {
            return false;
        }
    }
}
